package com.hspedu.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hspedu.seckill.pojo.User;
import com.hspedu.seckill.vo.LoginVo;
import com.hspedu.seckill.vo.RespBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface UserService extends IService<User> {

    /**
     * 验证用户登录信息
     */
    RespBean doLogin(HttpServletRequest request, HttpServletResponse response, LoginVo loginVo);

    /**
     * 根据Cookie-ticket 获取用户的信息
     */
    User getUserByCookie(HttpServletRequest request, HttpServletResponse response);
}
